/* ===== Semáforo (Orçamentos) ===== */
.exp-traffic-btn {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, .25);
  cursor: pointer;
  background: transparent !important;
}

.exp-traffic-btn.is-green { background: #22c55e !important; }
.exp-traffic-btn.is-orange { background: #f59e0b !important; }
.exp-traffic-btn.is-red { background: #ef4444 !important; }

.exp-traffic-btn[data-locked="1"] {
  cursor: not-allowed;
  opacity: .85;
}

@media (min-width: 769px) {
  .exp-mobile-orcamentos-icon { display: none !important; }
}

.mobile-menu.header-responsive .nasa-mobile-icons-wrap.mini-icon-mobile svg {
  width: 23px;
  height: 23px;
}

.exp-mobile-orcamentos-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: inherit;
}

.exp-mobile-orcamentos-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.mobile-menu.header-responsive .nasa-mobile-icons-wrap.mini-icon-mobile {
  padding-right: 6px;
}

/* ================================
   MOBILE: Lista de Orçamentos (My Account)
================================ */
@media (max-width: 768px) {
  .exp-filters {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .exp-filters label input,
  .exp-filters label select {
    width: 100% !important;
    max-width: 100% !important;
  }

  .exp-filters button.button {
    width: 100% !important;
    border-radius: 999px !important;
  }

  .woocommerce-MyAccount-content table.my_account_orders thead {
    display: none !important;
  }

  .woocommerce-MyAccount-content > h2:first-of-type {
    margin-top: 10px !important;
  }

  .exp-filters {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .exp-filters label { width: 100%; }

  .exp-filters input,
  .exp-filters select {
    width: 100%;
    max-width: 100%;
  }

  .exp-filters button {
    width: 100%;
    height: 40px;
    border-radius: 10px;
  }

  .woocommerce-MyAccount-content table.my_account_orders,
  .woocommerce-MyAccount-content table.my_account_orders tbody,
  .woocommerce-MyAccount-content table.my_account_orders tr,
  .woocommerce-MyAccount-content table.my_account_orders td {
    display: block !important;
    width: 100% !important;
  }

  .woocommerce-MyAccount-content table.my_account_orders tr {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
  }

  .woocommerce-MyAccount-content table.my_account_orders tbody tr:nth-child(even) {
    background: #f8fafc;
    border-color: #e2e8f0;
  }

  .woocommerce-MyAccount-content table.my_account_orders td {
    border: 0 !important;
    padding: 8px 0 !important;
  }

  .woocommerce-MyAccount-content table.my_account_orders tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "id id"
      "title title"
      "client client"
      "total date"
      "actions actions";
    gap: 8px 12px;
    align-items: start;
  }

  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(1) { grid-area: id; }
  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(2) { grid-area: title; }
  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(3) { grid-area: client; }
  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(4) { grid-area: total; }
  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(5) { grid-area: date; }
  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(6) { grid-area: actions; }

  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(1) {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
  }

  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(2) {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
  }

  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(3) {
    color: #374151;
    font-weight: 600;
  }

  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(4) {
    font-weight: 800;
  }

  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(5) {
    text-align: right;
    color: #6b7280;
    font-size: 13px;
  }

  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(4)::before {
    content: "Total";
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
  }

  .woocommerce-MyAccount-content table.my_account_orders tr > td:nth-child(5)::before {
    content: "Data";
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
  }

  .woocommerce-MyAccount-content table.my_account_orders td.exp-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding-top: 10px !important;
  }

  .woocommerce-MyAccount-content table.my_account_orders td.exp-actions > a.button {
    width: 100%;
    height: 40px;
    border-radius: 999px;
    justify-content: center;
  }

  .woocommerce-MyAccount-content table.my_account_orders td.exp-actions > a.exp-icon-btn,
  .woocommerce-MyAccount-content table.my_account_orders td.exp-actions > a.exp-pdf-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 999px !important;
    justify-self: center;
  }

  .woocommerce-MyAccount-content table.my_account_orders td.exp-actions > .exp-icon-pill {
    grid-column: 1 / -1;
    text-align: center;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
