/* =========================================================
   TAJRIVO - TRANSACTIONS
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.transactions-page {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding-bottom: 50px;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.transactions-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.transactions-heading h1 {
  margin: 5px 0 7px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.transactions-heading p {
  max-width: 650px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.panel-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.14em;
}


/* =========================================================
   REFRESH BUTTON
========================================================= */

.transactions-refresh-button {
  min-height: 44px;
  padding: 0 17px;

  border: 1px solid #e2e8f0;
  border-radius: 13px;

  background: #ffffff;
  color: #334155;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.04);

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.transactions-refresh-button:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--primary);
  transform: translateY(-1px);

  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.07);
}

.transactions-refresh-button:active {
  transform: translateY(0);
}


/* =========================================================
   TOPBAR SECURE CARD
========================================================= */

.transactions-secure-mini {
  min-height: 46px;
  padding: 6px 13px;

  border: 1px solid #e2e8f0;
  border-radius: 14px;

  background: #ffffff;

  display: flex;
  align-items: center;
  gap: 10px;

  box-shadow:
    0 4px 15px rgba(15, 23, 42, 0.035);
}

.transactions-secure-mini-icon {
  width: 32px;
  height: 32px;

  border-radius: 10px;

  background: #eef5ff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
}

.transactions-secure-mini div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.transactions-secure-mini span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.transactions-secure-mini strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}


/* =========================================================
   STATISTICS
========================================================= */

.transactions-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.transaction-stat-card {
  min-width: 0;
  min-height: 112px;

  padding: 20px;

  border: 1px solid #e8edf5;
  border-radius: 20px;

  background: #ffffff;

  display: flex;
  align-items: center;
  gap: 15px;

  box-shadow:
    0 7px 24px rgba(15, 23, 42, 0.045);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.transaction-stat-card:hover {
  transform: translateY(-2px);
  border-color: #dbe4f0;

  box-shadow:
    0 13px 32px rgba(15, 23, 42, 0.075);
}

.transaction-stat-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  border-radius: 15px;

  background: #f3f7ff;
  color: var(--primary);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
}

.transaction-stat-card:nth-child(2)
.transaction-stat-icon {
  background: #effcf6;
}

.transaction-stat-card:nth-child(3)
.transaction-stat-icon {
  background: #fff8e8;
}

.transaction-stat-card:nth-child(4)
.transaction-stat-icon {
  background: #effcf6;
  color: #059669;
}

.transaction-stat-card > div:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transaction-stat-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.transaction-stat-card strong {
  overflow: hidden;

  color: #0f172a;

  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}


/* =========================================================
   MAIN TRANSACTIONS CARD
========================================================= */

.transactions-card {
  position: relative;
  overflow: hidden;

  border: 1px solid #e8edf5;
  border-radius: 22px;

  background: #ffffff;

  box-shadow:
    0 10px 35px rgba(15, 23, 42, 0.05);
}

.transactions-card-header {
  min-height: 82px;
  padding: 20px 22px;

  border-bottom: 1px solid #eef2f7;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.transactions-card-header h2 {
  margin: 5px 0 0;

  color: #0f172a;

  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;

  letter-spacing: -0.02em;
}


/* =========================================================
   FILTERS
========================================================= */

.transactions-filters {
  padding: 16px 22px;

  border-bottom: 1px solid #eef2f7;

  display: grid;
  grid-template-columns:
    minmax(240px, 1fr)
    170px
    160px
    150px;
  gap: 10px;

  background: #fbfcfe;
}


/* =========================================================
   SEARCH
========================================================= */

.transactions-search {
  min-height: 44px;

  padding: 0 13px;

  border: 1px solid #e2e8f0;
  border-radius: 12px;

  background: #ffffff;

  display: flex;
  align-items: center;
  gap: 9px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.transactions-search:focus-within {
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.08);
}

.transactions-search > span {
  flex-shrink: 0;

  color: #94a3b8;

  font-size: 14px;
}

.transactions-search input {
  width: 100%;
  min-width: 0;

  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;
  color: #0f172a;

  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.transactions-search input::placeholder {
  color: #94a3b8;
}


/* =========================================================
   SELECTS
========================================================= */

.transactions-select {
  width: 100%;
  min-height: 44px;

  padding: 0 35px 0 12px;

  border: 1px solid #e2e8f0;
  border-radius: 12px;
  outline: none;

  background-color: #ffffff;
  color: #334155;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.transactions-select:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.08);
}


/* =========================================================
   STATES
========================================================= */

.transactions-state {
  min-height: 330px;

  padding: 50px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.transactions-state[hidden] {
  display: none !important;
}

.transactions-state-icon {
  width: 60px;
  height: 60px;

  margin-bottom: 16px;

  border-radius: 18px;

  background: #f1f5f9;
  color: #64748b;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 23px;
  font-weight: 800;
}

.transactions-state strong {
  margin-bottom: 7px;

  color: #0f172a;

  font-size: 16px;
  font-weight: 800;
}

.transactions-state > span {
  max-width: 410px;

  color: #64748b;

  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   LOADER
========================================================= */

.transactions-loader {
  width: 38px;
  height: 38px;

  margin-bottom: 18px;

  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;

  animation:
    transactions-spin 0.75s linear infinite;
}

@keyframes transactions-spin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   STATE BUTTONS
========================================================= */

.transactions-retry-button,
.transactions-empty-button {
  min-height: 42px;

  margin-top: 18px;
  padding: 0 17px;

  border: 0;
  border-radius: 12px;

  background: var(--primary);
  color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.transactions-retry-button:hover,
.transactions-empty-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.2);
}

.transactions-error-state
.transactions-state-icon {
  background: #fef2f2;
  color: #dc2626;
}


/* =========================================================
   DESKTOP TABLE
========================================================= */

.transactions-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.transactions-table-wrapper[hidden] {
  display: none !important;
}

.transactions-table {
  width: 100%;
  min-width: 850px;

  border-collapse: collapse;
  border-spacing: 0;
}

.transactions-table thead {
  background: #fbfcfe;
}

.transactions-table th {
  padding: 13px 18px;

  border-bottom: 1px solid #eef2f7;

  color: #94a3b8;

  text-align: left;
  white-space: nowrap;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.transactions-table th:nth-child(5) {
  text-align: right;
}

.transactions-table th:last-child {
  width: 50px;
}

.transactions-table td {
  padding: 15px 18px;

  border-bottom: 1px solid #f1f5f9;

  color: #334155;

  vertical-align: middle;

  font-size: 12px;
}

.transactions-table tbody tr {
  transition:
    background 0.2s ease;
}

.transactions-table tbody tr:hover {
  background: #fbfdff;
}

.transactions-table tbody tr:last-child td {
  border-bottom: 0;
}


/* =========================================================
   TRANSACTION MAIN INFO
========================================================= */

.transaction-main {
  min-width: 190px;

  display: flex;
  align-items: center;
  gap: 11px;
}

.transaction-type-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  border-radius: 12px;

  background: #eff6ff;
  color: #2563eb;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
}

.transaction-type-icon.giftcard {
  background: #fff8e8;
  color: #d97706;
}

.transaction-type-icon.refund {
  background: #f3f4f6;
  color: #475569;
}

.transaction-main-info {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transaction-main-info strong {
  overflow: hidden;

  max-width: 200px;

  color: #0f172a;

  font-size: 12px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.transaction-main-info span {
  overflow: hidden;

  max-width: 200px;

  color: #94a3b8;

  font-size: 10px;
  font-weight: 600;

  white-space: nowrap;
  text-overflow: ellipsis;
}


/* =========================================================
   RECEIVER / PRODUCT
========================================================= */

.transaction-receiver {
  min-width: 150px;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transaction-receiver strong {
  color: #334155;

  font-size: 12px;
  font-weight: 700;
}

.transaction-receiver span {
  color: #94a3b8;

  font-size: 10px;
  font-weight: 600;
}


/* =========================================================
   DATE
========================================================= */

.transaction-date {
  min-width: 110px;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transaction-date strong {
  color: #475569;

  font-size: 11px;
  font-weight: 700;
}

.transaction-date span {
  color: #94a3b8;

  font-size: 10px;
}


/* =========================================================
   STATUS
========================================================= */

.transaction-status {
  width: fit-content;
  min-height: 27px;

  padding: 0 10px;

  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 10px;
  font-weight: 800;

  text-transform: capitalize;
  white-space: nowrap;
}

.transaction-status.completed,
.transaction-status.success,
.transaction-status.successful {
  background: #ecfdf5;
  color: #059669;
}

.transaction-status.processing {
  background: #eff6ff;
  color: #2563eb;
}

.transaction-status.pending {
  background: #fffbeb;
  color: #d97706;
}

.transaction-status.failed,
.transaction-status.cancelled,
.transaction-status.canceled {
  background: #fef2f2;
  color: #dc2626;
}

.transaction-status.refunded {
  background: #f1f5f9;
  color: #475569;
}


/* =========================================================
   AMOUNT
========================================================= */

.transaction-amount {
  min-width: 100px;

  text-align: right;
}

.transaction-amount strong {
  color: #0f172a;

  font-size: 13px;
  font-weight: 800;

  white-space: nowrap;
}

.transaction-amount span {
  display: block;

  margin-top: 3px;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 600;
}


/* =========================================================
   VIEW BUTTON
========================================================= */

.transaction-view-button {
  width: 34px;
  height: 34px;

  padding: 0;

  border: 1px solid #e2e8f0;
  border-radius: 10px;

  background: #ffffff;
  color: #64748b;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.transaction-view-button:hover {
  border-color: #dbe5f1;
  background: #f3f7ff;
  color: var(--primary);
  transform: translateX(1px);
}


/* =========================================================
   MOBILE TRANSACTION LIST
========================================================= */

.transactions-mobile-list {
  display: none;
  padding: 12px;
}

.transactions-mobile-list[hidden] {
  display: none !important;
}

.transaction-mobile-card {
  padding: 16px;

  border: 1px solid #e8edf5;
  border-radius: 17px;

  background: #ffffff;

  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.035);

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.transaction-mobile-card +
.transaction-mobile-card {
  margin-top: 10px;
}

.transaction-mobile-card:hover {
  border-color: #dbe4f0;
  transform: translateY(-1px);

  box-shadow:
    0 9px 22px rgba(15, 23, 42, 0.06);
}

.transaction-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transaction-mobile-main {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 11px;
}

.transaction-mobile-main-info {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.transaction-mobile-main-info strong {
  overflow: hidden;

  color: #0f172a;

  font-size: 12px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.transaction-mobile-main-info span {
  overflow: hidden;

  color: #94a3b8;

  font-size: 10px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.transaction-mobile-amount {
  flex-shrink: 0;

  color: #0f172a;

  font-size: 13px;
  font-weight: 800;
}

.transaction-mobile-bottom {
  margin-top: 14px;
  padding-top: 12px;

  border-top: 1px solid #f1f5f9;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transaction-mobile-date {
  color: #94a3b8;

  font-size: 10px;
  font-weight: 600;
}


/* =========================================================
   PAGINATION
========================================================= */

.transactions-pagination {
  min-height: 68px;

  padding: 13px 20px;

  border-top: 1px solid #eef2f7;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.transactions-pagination[hidden] {
  display: none !important;
}

.transactions-pagination button {
  min-height: 36px;

  padding: 0 13px;

  border: 1px solid #e2e8f0;
  border-radius: 10px;

  background: #ffffff;
  color: #475569;

  font-family: inherit;
  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.transactions-pagination button:hover:not(:disabled) {
  border-color: #dbe5f1;
  background: #f5f8ff;
  color: var(--primary);
}

.transactions-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.transactions-pagination span {
  min-width: 70px;

  color: #64748b;

  text-align: center;

  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   TRANSACTION DETAILS MODAL
========================================================= */

.transaction-details-modal {
  position: fixed;
  inset: 0;

  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.transaction-details-modal[hidden] {
  display: none !important;
}

.transaction-details-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(15, 23, 42, 0.5);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.transaction-details-card {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);

  overflow-y: auto;

  padding: 22px;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 23px;

  background: #ffffff;

  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.2);

  animation:
    transaction-modal-in 0.22s ease;
}

@keyframes transaction-modal-in {
  from {
    opacity: 0;
    transform:
      translateY(10px)
      scale(0.98);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}


/* =========================================================
   DETAILS HEADER
========================================================= */

.transaction-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 19px;
}

.transaction-details-header h2 {
  margin: 5px 0 0;

  color: #0f172a;

  font-size: 19px;
  font-weight: 800;
}

.transaction-details-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;

  padding: 0;

  border: 1px solid #e2e8f0;
  border-radius: 11px;

  background: #ffffff;
  color: #64748b;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.transaction-details-close:hover {
  background: #f8fafc;
  color: #0f172a;
}


/* =========================================================
   DETAILS STATUS BOX
========================================================= */

.transaction-details-status-box {
  padding: 15px;

  border: 1px solid #e8edf5;
  border-radius: 17px;

  background: #fbfcfe;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  margin-bottom: 18px;
}

.transaction-details-main-icon {
  width: 45px;
  height: 45px;

  border-radius: 14px;

  background: #eff6ff;
  color: var(--primary);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
}

.transaction-details-status-box > div:nth-child(2) {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transaction-details-status-box strong {
  overflow: hidden;

  color: #0f172a;

  font-size: 13px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.transaction-details-status-box
> div:nth-child(2)
> span {
  overflow: hidden;

  color: #94a3b8;

  font-size: 10px;

  white-space: nowrap;
  text-overflow: ellipsis;
}


/* =========================================================
   DETAILS LIST
========================================================= */

.transaction-details-list {
  padding: 4px 1px;
}

.transaction-detail-row {
  min-height: 43px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.transaction-detail-row[hidden] {
  display: none !important;
}

.transaction-detail-row > span {
  flex-shrink: 0;

  color: #64748b;

  font-size: 11px;
  font-weight: 600;
}

.transaction-detail-row > strong {
  max-width: 65%;

  overflow-wrap: anywhere;

  color: #0f172a;

  text-align: right;

  font-size: 11px;
  font-weight: 800;
}

.transaction-detail-divider {
  height: 1px;

  margin: 7px 0;

  background: #eef2f7;
}

.transaction-detail-total {
  min-height: 52px;
}

.transaction-detail-total > span {
  color: #0f172a;

  font-size: 13px;
  font-weight: 800;
}

.transaction-detail-total > strong {
  color: var(--primary);

  font-size: 17px;
  font-weight: 900;
}

.transaction-detail-discount {
  color: #059669 !important;
}


/* =========================================================
   REFERENCE
========================================================= */

.transaction-reference-box {
  margin-top: 14px;
  padding: 13px 14px;

  border: 1px dashed #dbe3ee;
  border-radius: 13px;

  background: #f8fafc;

  display: flex;
  flex-direction: column;
  gap: 5px;
}

.transaction-reference-box span {
  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.transaction-reference-box strong {
  overflow-wrap: anywhere;

  color: #475569;

  font-size: 10px;
  font-weight: 700;
}


/* =========================================================
   DETAILS DONE BUTTON
========================================================= */

.transaction-details-done-button {
  width: 100%;
  min-height: 45px;

  margin-top: 18px;

  border: 0;
  border-radius: 13px;

  background: var(--primary);
  color: #ffffff;

  font-family: inherit;
  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.transaction-details-done-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 9px 22px rgba(37, 99, 235, 0.2);
}


/* =========================================================
   BODY MODAL LOCK
========================================================= */

body.transaction-modal-open {
  overflow: hidden;
}


/* =========================================================
   RESPONSIVE - 1200
========================================================= */

@media (max-width: 1200px) {

  .transactions-stats {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .transactions-filters {
    grid-template-columns:
      minmax(220px, 1fr)
      repeat(3, minmax(130px, 0.45fr));
  }

}


/* =========================================================
   RESPONSIVE - 1000
========================================================= */

@media (max-width: 1000px) {

  .transactions-filters {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .transactions-search {
    grid-column: 1 / -1;
  }

}


/* =========================================================
   RESPONSIVE - TABLET / MOBILE
========================================================= */

@media (max-width: 760px) {

  .transactions-page {
    padding-bottom: 30px;
  }


  /* HEADING */

  .transactions-heading {
    align-items: flex-start;
  }

  .transactions-heading h1 {
    font-size: 28px;
  }

  .transactions-heading p {
    font-size: 12px;
  }


  /* TOPBAR */

  .transactions-secure-mini {
    display: none;
  }


  /* STATS */

  .transactions-stats {
    gap: 10px;
  }

  .transaction-stat-card {
    min-height: 96px;
    padding: 14px;
    border-radius: 17px;
    gap: 11px;
  }

  .transaction-stat-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;

    border-radius: 12px;

    font-size: 16px;
  }

  .transaction-stat-card span {
    font-size: 10px;
  }

  .transaction-stat-card strong {
    font-size: 17px;
  }


  /* CARD */

  .transactions-card {
    border-radius: 18px;
  }

  .transactions-card-header {
    min-height: 70px;
    padding: 16px;
  }

  .transactions-card-header h2 {
    font-size: 16px;
  }


  /* FILTER */

  .transactions-filters {
    padding: 12px;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .transactions-search {
    grid-column: 1 / -1;
  }

  .transactions-select {
    min-height: 42px;

    font-size: 11px;
  }


  /* TABLE OFF */

  .transactions-table-wrapper {
    display: none !important;
  }


  /* MOBILE LIST */

  .transactions-mobile-list:not([hidden]) {
    display: block;
  }


  /* STATE */

  .transactions-state {
    min-height: 290px;
    padding: 40px 20px;
  }


  /* PAGINATION */

  .transactions-pagination {
    min-height: 62px;
  }


  /* MODAL */

  .transaction-details-card {
    max-width: 500px;
  }

}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

  .transactions-heading {
    gap: 12px;
  }

  .transactions-refresh-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;

    padding: 0;

    overflow: hidden;

    font-size: 0;
  }

  .transactions-refresh-button::first-letter {
    font-size: 18px;
  }


  /* STATS */

  .transactions-stats {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .transaction-stat-card {
    min-height: 105px;

    align-items: flex-start;
    flex-direction: column;

    gap: 10px;
  }

  .transaction-stat-card strong {
    font-size: 16px;
  }


  /* FILTERS */

  .transactions-filters {
    grid-template-columns: 1fr;
  }

  .transactions-search {
    grid-column: auto;
  }


  /* MOBILE CARD */

  .transactions-mobile-list {
    padding: 9px;
  }

  .transaction-mobile-card {
    padding: 14px;
  }


  /* DETAILS MODAL */

  .transaction-details-modal {
    padding: 0;

    align-items: flex-end;
  }

  .transaction-details-card {
    width: 100%;
    max-width: none;
    max-height: 92vh;

    padding: 19px 17px 20px;

    border-radius:
      23px
      23px
      0
      0;

    animation:
      transaction-mobile-modal-in
      0.24s ease;
  }

  @keyframes transaction-mobile-modal-in {

    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }

  }

  .transaction-details-status-box {
    grid-template-columns:
      auto minmax(0, 1fr);

    padding: 13px;
  }

  .transaction-details-status-box
  > .transaction-status {
    grid-column: 1 / -1;

    margin-left: 57px;
  }

  .transaction-detail-row {
    min-height: 42px;
  }

  .transaction-detail-row > strong {
    max-width: 60%;
  }

} 


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

  .transactions-stats {
    grid-template-columns: 1fr;
  }

  .transaction-stat-card {
    min-height: 82px;

    flex-direction: row;
    align-items: center;
  }

}