/* TABELA PRINCIPAL */
.vse-voucher-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

/* Coluna "Pedido" com largura fixa */
.vse-voucher-table th:nth-child(1),
.vse-voucher-table td:nth-child(1) {
  width: 120px;
}

.vse-voucher-table th,
.vse-voucher-table td {
  padding: 10px;
  font-size: 14px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.vse-voucher-table th:nth-child(2),
.vse-voucher-table td:nth-child(2) {
  width: 40%;
}

/* Destacar número do pedido */
.vse-order-row td:first-child {
  font-weight: bold;
  background: #f0f8ff;
  border-left: 4px solid #00b3b3;
  padding-left: 12px;
  border-radius: 4px;
  text-align: center;
}

/* Coluna de ações fixa */
.vse-order-row td:last-child {
  width: 180px;
  text-align: center;
  white-space: nowrap;
}

.vse-toggle-vouchers {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 100px;
  max-width: 100%;
  padding: 6px 12px;
  font-weight: 600;
  background-color: #59c7c7;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 10px !important;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.vse-toggle-vouchers i.fas.fa-file-pdf {
  color: #e3342f;
  font-size: 13px;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
}

/* Evita quebra da linha de ações */
.vse-order-row td:last-child {
  width: 1%;
  white-space: nowrap;
}

/* Permite responsividade sem estouro */
@media (max-width: 768px) {
  .vse-toggle-vouchers {
    font-size: 9px !important;
    padding: 5px 8px;
  }
}

.vse-toggle-vouchers:hover {
  background-color: #4dbaba;
}

/* SUBTABELA */
.vse-voucher-row td[colspan="5"] {
  padding: 0;
}

.vse-inner-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
}

.vse-inner-table th,
.vse-inner-table td {
  padding: 10px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
  word-break: break-word;
}

/* Colunas da subtabela com proporções fixas */
.vse-inner-table th:nth-child(1),
.vse-inner-table td:nth-child(1) {
  width: 40%;
}

.vse-inner-table th:nth-child(2),
.vse-inner-table td:nth-child(2) {
  width: 30%;
}

.vse-inner-table th:nth-child(3),
.vse-inner-table td:nth-child(3) {
  width: 30%;
}

/* LINK DE DOWNLOAD */
.voucher-download {
  color: #00b3b3;
  font-weight: 500;
  text-decoration: none;
}

.voucher-download:hover {
  text-decoration: underline;
}

/* PAGINAÇÃO */
.woocommerce-pagination {
  margin-top: 20px;
  text-align: center;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.woocommerce-pagination a:hover {
  background-color: #00b3b3;
  color: white;
  border-color: #00b3b3;
}

.woocommerce-pagination .current {
  background-color: #00b3b3;
  color: white;
  border-color: #00b3b3;
}
