/* =========================================================
   A2TDEV Requests table repair
   Scope: /services/requests/ only.
   - Removes the duplicated hero CTA from the layout (template).
   - Gives the desktop table usable action width and cleaner rows.
   ========================================================= */

@media (min-width: 761px) {
  body:has(.a2t-requests-page) {
    overflow-x: hidden !important;
  }

  .a2t-requests-page .a2t-requests-brief-actions {
    justify-content: flex-end !important;
    min-width: 0 !important;
  }

  .a2t-requests-page .a2t-requests-notification {
    width: auto !important;
    min-width: 208px !important;
    padding-inline: 18px !important;
  }

  .a2t-requests-page .a2t-project-table-wrap {
    overflow: visible !important;
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
  }

  .a2t-requests-page .a2t-project-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .a2t-requests-page .a2t-project-table th,
  .a2t-requests-page .a2t-project-table td {
    padding: 16px 18px !important;
    vertical-align: middle !important;
    overflow: visible !important;
    text-align: left !important;
  }

  .a2t-requests-page .a2t-project-table th {
    font-size: 12px !important;
    line-height: 1.1 !important;
    letter-spacing: .02em !important;
    color: #53627a !important;
    background: #f8fafc !important;
    white-space: nowrap !important;
  }

  .a2t-requests-page .a2t-project-table tbody tr {
    transition: background-color .16s ease !important;
  }

  .a2t-requests-page .a2t-project-table tbody tr:hover {
    background: #fbfdff !important;
  }

  .a2t-requests-page .a2t-project-table td:first-child strong {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #020617 !important;
    font-weight: 950 !important;
  }

  .a2t-requests-page .a2t-project-table td:first-child span,
  .a2t-requests-page .a2t-project-table td[data-label="Category"],
  .a2t-requests-page .a2t-project-table td[data-label="Last Update"],
  .a2t-requests-page .a2t-project-table td[data-label="Budget"] {
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #53647d !important;
  }

  .a2t-requests-page .a2t-project-table th:nth-child(1),
  .a2t-requests-page .a2t-project-table td:nth-child(1) { width: 28% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(2),
  .a2t-requests-page .a2t-project-table td:nth-child(2) { width: 17% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(3),
  .a2t-requests-page .a2t-project-table td:nth-child(3) { width: 18% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(4),
  .a2t-requests-page .a2t-project-table td:nth-child(4) { width: 12% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(5),
  .a2t-requests-page .a2t-project-table td:nth-child(5) { width: 10% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(6),
  .a2t-requests-page .a2t-project-table td:nth-child(6) {
    width: 15% !important;
    min-width: 172px !important;
    white-space: nowrap !important;
  }

  .a2t-requests-page .a2t-project-table td[data-label="Actions"] {
    padding-right: 18px !important;
  }

  .a2t-requests-page .a2t-table-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .a2t-requests-page .a2t-table-actions .a2t-btn {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 128px !important;
    min-width: 112px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    box-sizing: border-box !important;
  }

  .a2t-requests-page .a2t-row-menu {
    position: relative !important;
    flex: 0 0 40px !important;
    width: 40px !important;
  }

  .a2t-requests-page .a2t-row-menu .a2t-icon-btn,
  .a2t-requests-page .a2t-icon-btn[data-project-menu-toggle] {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .a2t-requests-page .a2t-row-menu-panel {
    right: 0 !important;
    left: auto !important;
    top: calc(100% + 8px) !important;
    z-index: 80 !important;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .a2t-requests-page .a2t-project-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .a2t-requests-page .a2t-project-table {
    min-width: 980px !important;
  }
}

@media (max-width: 760px) {
  .a2t-requests-page .a2t-requests-brief-actions {
    grid-template-columns: 1fr !important;
  }

  .a2t-requests-page .a2t-requests-notification {
    width: 100% !important;
  }
}

html[data-theme='dark'] .a2t-requests-page .a2t-project-table-wrap,
body.dark-mode .a2t-requests-page .a2t-project-table-wrap,
body.dark .a2t-requests-page .a2t-project-table-wrap {
  background: #0b1220 !important;
  border-color: rgba(148, 163, 184, .22) !important;
}

html[data-theme='dark'] .a2t-requests-page .a2t-project-table th,
body.dark-mode .a2t-requests-page .a2t-project-table th,
body.dark .a2t-requests-page .a2t-project-table th {
  background: #111827 !important;
  color: #94a3b8 !important;
}

html[data-theme='dark'] .a2t-requests-page .a2t-project-table tbody tr:hover,
body.dark-mode .a2t-requests-page .a2t-project-table tbody tr:hover,
body.dark .a2t-requests-page .a2t-project-table tbody tr:hover {
  background: rgba(30, 41, 59, .5) !important;
}

html[data-theme='dark'] .a2t-requests-page .a2t-project-table td:first-child strong,
body.dark-mode .a2t-requests-page .a2t-project-table td:first-child strong,
body.dark .a2t-requests-page .a2t-project-table td:first-child strong {
  color: #f8fafc !important;
}


/* =========================================================
   Follow-up: remove request row 3-dot menu and center single action.
   Scope stays limited to /services/requests/.
   ========================================================= */
@media (min-width: 761px) {
  .a2t-requests-page .a2t-project-table th:nth-child(1),
  .a2t-requests-page .a2t-project-table td:nth-child(1) { width: 30% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(2),
  .a2t-requests-page .a2t-project-table td:nth-child(2) { width: 18% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(3),
  .a2t-requests-page .a2t-project-table td:nth-child(3) { width: 18% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(4),
  .a2t-requests-page .a2t-project-table td:nth-child(4) { width: 12% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(5),
  .a2t-requests-page .a2t-project-table td:nth-child(5) { width: 10% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(6),
  .a2t-requests-page .a2t-project-table td:nth-child(6) {
    width: 12% !important;
    min-width: 138px !important;
  }
  .a2t-requests-page .a2t-table-actions-single {
    justify-content: flex-start !important;
    gap: 0 !important;
  }
  .a2t-requests-page .a2t-table-actions-single .a2t-btn {
    min-width: 124px !important;
    max-width: 100% !important;
  }
  .a2t-requests-page .a2t-row-menu,
  .a2t-requests-page [data-project-menu-toggle] {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .a2t-requests-page .a2t-project-card-actions-single {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .a2t-requests-page .a2t-project-card-actions-single .a2t-project-card-primary {
    width: 100% !important;
  }
  .a2t-requests-page .a2t-project-card-menu,
  .a2t-requests-page .a2t-project-card-more,
  .a2t-requests-page [data-project-menu-toggle] {
    display: none !important;
  }
}

/* =========================================================
   Follow-up: pull the single View details action away from
   the far table edge and give the desktop table calmer rhythm.
   ========================================================= */
@media (min-width: 761px) {
  .a2t-requests-page .a2t-project-table th:nth-child(1),
  .a2t-requests-page .a2t-project-table td:nth-child(1) { width: 28% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(2),
  .a2t-requests-page .a2t-project-table td:nth-child(2) { width: 17% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(3),
  .a2t-requests-page .a2t-project-table td:nth-child(3) { width: 18% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(4),
  .a2t-requests-page .a2t-project-table td:nth-child(4) { width: 11% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(5),
  .a2t-requests-page .a2t-project-table td:nth-child(5) { width: 10% !important; }
  .a2t-requests-page .a2t-project-table th:nth-child(6),
  .a2t-requests-page .a2t-project-table td:nth-child(6) {
    width: 16% !important;
    min-width: 176px !important;
  }

  .a2t-requests-page .a2t-project-table th:nth-child(6) {
    text-align: center !important;
    padding-left: 22px !important;
    padding-right: 34px !important;
  }

  .a2t-requests-page .a2t-project-table td[data-label="Actions"],
  .a2t-requests-page .a2t-project-table td:nth-child(6) {
    padding-left: 22px !important;
    padding-right: 34px !important;
  }

  .a2t-requests-page .a2t-table-actions,
  .a2t-requests-page .a2t-table-actions-single {
    width: 100% !important;
    justify-content: center !important;
  }

  .a2t-requests-page .a2t-table-actions-single .a2t-btn,
  .a2t-requests-page .a2t-table-actions .a2t-btn {
    min-width: 132px !important;
    max-width: 144px !important;
    margin-inline: auto !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .a2t-requests-page .a2t-project-table th:nth-child(6),
  .a2t-requests-page .a2t-project-table td:nth-child(6) {
    min-width: 162px !important;
  }
  .a2t-requests-page .a2t-project-table td[data-label="Actions"],
  .a2t-requests-page .a2t-project-table td:nth-child(6) {
    padding-left: 18px !important;
    padding-right: 24px !important;
  }
  .a2t-requests-page .a2t-table-actions-single .a2t-btn,
  .a2t-requests-page .a2t-table-actions .a2t-btn {
    min-width: 124px !important;
    max-width: 136px !important;
  }
}
