.voucher-content { padding-top: 26px; }
.voucher-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 30px; }
.voucher-top h1, .voucher-top p, .voucher-top small { margin: 0; }
.voucher-top h1 { font-size: 30px; }
.voucher-top p { margin-top: 8px; font-weight: 800; }
.voucher-top span, .voucher-top small { color: var(--muted); }
.voucher-top small { display: block; margin-top: 8px; font-size: 14px; }
.voucher-actions { display: flex; gap: 14px; }
.voucher-actions button, .voucher-filter button, .voucher-table td button, .voucher-footer button, .voucher-footer select, .popular-vouchers button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 800;
}
.voucher-actions button { display: inline-flex; gap: 9px; align-items: center; height: 44px; padding: 0 18px; }
.voucher-actions .primary, .popular-vouchers button { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--green-bright), var(--green)); }

.voucher-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.voucher-stats article { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; min-height: 128px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 26px rgba(23,44,39,.05); }
.voucher-stats article > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 12px; }
.voucher-stats p, .voucher-stats small { margin: 0; }
.voucher-stats p { color: #4f5e59; font-weight: 800; }
.voucher-stats strong { display: block; margin: 10px 0 12px; font-size: 24px; }
.voucher-stats article,
.voucher-stats article > div { min-width: 0; }
.voucher-stats strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.15;
}
.voucher-stats small { font-weight: 800; }
.voucher-stats .up { color: var(--green); }
.voucher-stats .warn-text { color: #d48200; }

.voucher-filter { display: grid; grid-template-columns: 1.12fr .62fr .72fr .72fr 1fr auto auto; gap: 18px; align-items: center; margin-bottom: 18px; }
.voucher-filter label > span { position: relative; display: block; }
.voucher-filter input, .voucher-filter select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: #fff; outline: 0; }
.voucher-filter input { padding: 0 42px 0 14px; }
.voucher-filter select { padding: 0 14px; }
.voucher-filter label > span i { position: absolute; right: 12px; top: 11px; color: var(--muted); }
.voucher-filter button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; height: 42px; padding: 0 22px; }
.voucher-filter button:last-child { color: var(--green); border-color: rgba(15,159,99,.42); }

.voucher-main { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.voucher-table { padding: 0; overflow: hidden; }
.voucher-table h2 { height: 62px; margin: 0; padding: 20px 22px 0; font-size: 18px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.voucher-table table { width: 100%; min-width: 1180px; table-layout: auto; }
.voucher-table th { background: #fbfcfc; }
.voucher-table td, .voucher-table th { padding: 15px 18px; vertical-align: middle; }
.voucher-table td small { display: block; margin-top: 5px; color: var(--muted); }
.voucher-name { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; min-width: 245px; }
.voucher-badge {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-style: normal;
  font-size: 20px;
  font-weight: 1000;
  text-align: center;
}
.voucher-badge.green { background: linear-gradient(135deg,#7fe49c,#17ad66); }
.voucher-badge.orange { background: linear-gradient(135deg,#ffb86b,#f07521); }
.voucher-badge.blue { background: linear-gradient(135deg,#8577ff,#5653d7); }
.voucher-badge.cyan { background: linear-gradient(135deg,#8fe3df,#42bfc1); }
.voucher-badge.pink { background: linear-gradient(135deg,#ff8ab1,#ee5d8e); }
.voucher-badge.yellow { background: linear-gradient(135deg,#ffdf68,#f0b520); color: #7d5500; }
.voucher-badge.sky { background: linear-gradient(135deg,#8bd6ff,#4ca6e8); }
.voucher-badge.gray { background: linear-gradient(135deg,#e4e7e6,#a9b1ae); color: #2e3834; }
.type, .active-status, .soon-status, .done-status { display: inline-flex; padding: 6px 10px; border-radius: 7px; font-style: normal; font-weight: 900; white-space: nowrap; }
.green-type, .active-status { color: var(--green); background: #eaf9f2; }
.blue-type { color: #1e80c7; background: #e8f3ff; }
.yellow-type { color: #b47a00; background: #fff4d8; }
.soon-status { color: #d48200; background: #fff4d8; }
.done-status { color: #5f6d67; background: #eef2f2; }
.voucher-table td:last-child { display: flex; gap: 9px; align-items: center; }
.voucher-table td button { display: grid; width: 38px; height: 38px; place-items: center; }
.voucher-table td button.danger { color: #e34b5b; }
.voucher-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.voucher-footer p { margin: 0; color: #4f5e59; }
.voucher-footer div { display: flex; gap: 10px; align-items: center; }
.voucher-footer button, .voucher-footer select { min-width: 38px; height: 38px; padding: 0 12px; }
.voucher-footer button.active { color: #fff; background: var(--green); }

.voucher-side { display: grid; gap: 0; }
.voucher-summary, .popular-vouchers { padding: 22px; border-radius: 0; }
.voucher-summary { border-radius: 8px 8px 0 0; }
.popular-vouchers { border-radius: 0 0 8px 8px; }
.voucher-summary h2, .popular-vouchers h2 { margin: 0 0 20px; font-size: 17px; }
.voucher-summary p { display: flex; justify-content: space-between; gap: 14px; margin: 16px 0; color: #4f5e59; font-weight: 800; }
.voucher-summary b { color: var(--ink); }
.popular-vouchers > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.popular-vouchers a { color: var(--green); font-weight: 900; }
.popular-vouchers article { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; }
.popular-vouchers b small { display: block; margin-top: 6px; color: var(--muted); }
.popular-vouchers article span { display: grid; grid-template-columns: 1fr 24px; gap: 10px; align-items: center; color: #60706a; font-weight: 800; font-size: 12px; }
.popular-vouchers article em { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--green); background: #eaf9f2; font-style: normal; font-weight: 1000; }
.voucher-cta { display: grid; gap: 8px; margin-top: 18px; padding: 20px; border-radius: 8px; background: #eaf9f2; }
.voucher-cta > span { color: var(--green); }
.voucher-cta b { font-size: 17px; }
.voucher-cta small { color: #4f5e59; }
.voucher-cta button { display: inline-flex; width: 100%; height: 42px; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; }

@media (max-width: 1500px) { .voucher-main { grid-template-columns: 1fr; } .voucher-stats { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1200px) { .voucher-stats { grid-template-columns: repeat(2,1fr); } .voucher-filter { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) {
  .voucher-top { align-items: flex-start; flex-direction: column; }
  .voucher-actions { width: 100%; flex-direction: column; }
  .voucher-actions button { justify-content: center; }
  .voucher-stats, .voucher-filter { grid-template-columns: 1fr; }
  /* Rows per page footer — scroll horizontal */
  .voucher-footer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    white-space: nowrap;
  }
  .voucher-footer::-webkit-scrollbar { display: none; }
  .voucher-footer p { flex-shrink: 0; }
  .voucher-footer div {
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
  }
}
