/* ───── Global table design  (front-end only) ───────── */

/* Apply to *all* tables that do NOT carry .no-style  */
table:not(.no-style) {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
  }
  
  /* Header row */
  table:not(.no-style) thead {
    background: #3a3a3a;
    color: #fff;
    cursor: pointer;               /* shows you can click-to-sort */
  }
  
  /* Cells */
  table:not(.no-style) th,
  table:not(.no-style) td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--e-global-color-secondary);
    border: 1px solid #3a3a3a; 
  }
  
  /* Zebra rows */
  table:not(.no-style) tbody tr:nth-child(even) {
    background: var(--e-global-color-secondary);
  }
  table:not(.no-style) tbody tr:nth-child(odd) {
    background: var(--e-global-color-secondary, #f9f9f9);
  }
  
  /* Hover highlight */
  table:not(.no-style) tbody tr:hover {
    background: var(--e-global-color-accent);
    color: #fff;
  }
  
  /* ▲ ▼ indicators for sortable columns */
  table:not(.no-style) th.sort-asc::after  { content: " ▲"; }
  table:not(.no-style) th.sort-desc::after { content: " ▼"; }


/* Payouts Table */
/* global-tables.css */

/* Apply styles to all Keeta payout tables */
#dp-wallet-payouts-table {
  width: 100%;
  border-collapse: collapse;
}

/* Table header */
#dp-wallet-payouts-table thead {
  background-color: #4D6A79;  /* Elementor secondary color */
  color: var(--e-global-color-text);                  /* Elementor text color */
  font-family: var(--e-global-typography-accent-font-family);
  font-weight: var(--e-global-typography-accent-font-weight);
  font-size: var(--e-global-typography-accent-font-size);
  line-height: var(--e-global-typography-accent-line-height);
  letter-spacing: var(--e-global-typography-accent-letter-spacing);
  text-transform: var(--e-global-typography-accent-text-transform);
  padding: 0.75rem;
}

/* Header cells */
#dp-wallet-payouts-table thead th {
  padding: 0.75rem;
  text-align: left;
}

/* Table body rows */
#dp-wallet-payouts-table tbody tr {
  background-color: var(--e-global-color-secondary);    /* Elementor primary color */
  color: var(--e-global-color-text);                  /* Elementor text color */
  font-family: var(--e-global-typography-text-font-family);
  font-weight: var(--e-global-typography-text-font-weight);
  font-size: var(--e-global-typography-text-font-size);
  line-height: var(--e-global-typography-text-line-height);
  letter-spacing: var(--e-global-typography-text-letter-spacing);
  text-transform: var(--e-global-typography-text-text-transform);
}

/* Body cells */
#dp-wallet-payouts-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#dp-wallet-payouts-table tbody td a {
  color: var(--e-global-color-accent);
  text-decoration: none;
}

#dp-wallet-payouts-table tbody td a:hover,
#dp-wallet-payouts-table tbody td a:active {
  color: #FF5B04;
}

#dp-wallet-payouts-export-btn {
  /* default: secondary bg with text-colored icon */
  background-color: var(--e-global-color-secondary);
  color:            var(--e-global-color-text);
  border:           none;
  padding:          0.5em;             /* adjust to taste */
  border-radius:    0.5em;            /* optional rounding */
  cursor:           pointer;
  transition:       background-color .2s ease;
}

#dp-wallet-payouts-export-btn:hover,
#dp-wallet-payouts-export-btn:active,
#dp-wallet-payouts-export-btn:focus {
  /* hover/active: accent bg, keep icon text-colored */
  background-color: var(--e-global-color-accent);
  color:            var(--e-global-color-text);
}

.payout-pagination {
/* use Elementor “Text” typography and “Text” color */
font-family: var(--e-global-typography-text-font-family), sans-serif;
font-weight: var(--e-global-typography-text-font-weight);
font-size: var(--e-global-typography-text-font-size);
line-height: var(--e-global-typography-text-line-height);
color: var(--e-global-color-text);
}

/* Hide the number‐input arrows */
.payout-pagination input[type=number] {
font-family: var(--e-global-typography-text-font-family), sans-serif;
color: var(--e-global-color-text);
}
.payout-pagination input[type=number]::-webkit-outer-spin-button,
.payout-pagination input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none; /* Chrome, Safari, Edge */
margin: 0;
}

/* Make the Bootstrap icon arrows inherit Elementor “Text” color */
.payout-pagination button i {
color: var(--e-global-color-secondary);
font-size: 1.2em;    /* adjust size as needed */
line-height: 1;
}

.payout-pagination button:hover i {
color: var(--e-global-color-accent);
}

/* Make pagination buttons just the icon, no bg or border */
.payout-pagination button {
background: transparent;
border: none;
padding: 0;
margin: 0 0.25em;    /* optional spacing between arrows */
cursor: pointer;
}

.payout-pagination label,
.payout-pagination span /* the page indicator text */ {
  font-family: var(--e-global-typography-text-font-family) !important;
  font-weight: var(--e-global-typography-text-font-weight) !important;
  font-size: var(--e-global-typography-text-font-size) !important;
  line-height: var(--e-global-typography-text-line-height) !important;
  color: var(--e-global-color-text) !important;
}

/* Make the number input match too */
.payout-pagination input[type="number"] {
  font-family: var(--e-global-typography-text-font-family) !important;
  font-weight: var(--e-global-typography-text-font-weight) !important;
  font-size: var(--e-global-typography-text-font-size) !important;
  line-height: var(--e-global-typography-text-line-height) !important;
  color: var(--e-global-color-text) !important;
  height: 2em !important;
}

/* make the pagination controls sit at the bottom‐right of the table */
.dp-wallet-payouts-list {
  /* ensure the flex container can stretch full width */
  display: flex;
  flex-direction: column;
}

.dp-wallet-payouts-list .payout-pagination {
  display: flex;
  justify-content: flex-end;  /* push controls to the right */
  align-items: center;
  margin-top: 0.5em;          /* spacing above the controls */
  gap: 0.5em;                 /* space between buttons/inputs */
}

@media (max-width: 768px) {
  /* 1) hide the “Total Payout” column (5th col) */
  #dp-wallet-payouts-table th:nth-child(5),
  #dp-wallet-payouts-table td:nth-child(5) {
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;    /* optional – distributes column widths evenly */  
  }
}

/* default (desktop) */
#dp-wallet-payouts-table th i.bi-caret-up,
#dp-wallet-payouts-table th i.bi-caret-down {
  font-size: 1rem;    /* ~16px */
  margin-left: 0.25em;/* a little breathing room from the header text */
}

/* smaller on phone */
@media (max-width: 768px) {
  #dp-wallet-payouts-table th i.bi-caret-up,
  #dp-wallet-payouts-table th i.bi-caret-down {
    font-size: 0.75rem; /* ~12px */
  }
}

@media (max-width: 768px) {
  .dp-wallet-payouts-list {
    overflow-x: auto;
  }
  .dp-wallet-payouts-list table {
    min-width: 100%;
  }
}