/* Only the request content within the current attendance workspace. */
.attendance-workspace[data-attendance-view="deptRequests"]:has(.department-queue-redesign) > .page-top {
  align-items: center;
  gap: 16px;
  margin-block-end: 16px;
}
.attendance-workspace[data-attendance-view="deptRequests"]:has(.department-queue-redesign) > .page-top :is(.breadcrumbs,.subtitle) { display: none; }
.attendance-workspace[data-attendance-view="deptRequests"]:has(.department-queue-redesign) > .page-top h1 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.department-queue-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.attendance-department-workspace.department-queue-redesign {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-inline-size: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.department-queue-redesign > .domain-list-heading {
  display: block;
  margin: 0;
  padding: 8px 16px 0;
  border-block-end: 1px solid var(--border);
}
.department-queue-redesign > .domain-list-heading > .domain-segments {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.department-queue-redesign .domain-segments button[data-paya-control] {
  position: relative;
  min-block-size: 44px;
  padding-inline: 16px;
  border: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}
.department-queue-redesign .domain-segments button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.department-queue-redesign .domain-segments button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  block-size: 2px;
  background: var(--accent);
}
.department-queue-redesign > .department-report-filters {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr)) max-content;
  align-items: end;
  gap: 12px;
  padding: 16px 20px 20px;
  margin: 0;
  border-block-end: 1px solid var(--border);
}
.department-queue-redesign[data-dept-queue="ceo"] > .department-report-filters {
  grid-template-columns: repeat(2,minmax(0,1fr)) max-content;
}
.department-queue-redesign > .department-report-filters [data-paya-message-empty="true"] { display: none; }
.department-queue-redesign > .department-report-filters > button { min-block-size: 36px; inline-size: max-content; border: 1px solid var(--border); color: var(--accent); }
.department-queue-redesign > .department-request-source:empty { display: none; }
.department-queue-redesign .dept-request-table { min-inline-size: 0; }
.department-queue-redesign .department-queue-heading,
.department-queue-redesign .dept-request-table > h3 {
  padding: 16px 20px 12px;
  margin: 0;
}
.department-queue-redesign .department-queue-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.department-queue-redesign :is(.department-queue-heading h3,.dept-request-table > h3) {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.department-queue-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.department-queue-redesign .dept-request-table :is(.domain-card,.domain-table-scroll) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.department-queue-redesign .dept-request-table .paya-table-content { padding: 0; }
/* Match the personnel roster grid inside each Department Requests table. */
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table {
  border-collapse: collapse;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table :is(th,td) {
  padding: 8px 12px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table th {
  block-size: 56px;
  color: var(--foreground);
  background: var(--surface-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
}
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table td {
  block-size: 44px;
  background: var(--surface);
}
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table tbody tr:nth-child(even) > td {
  background: var(--surface-secondary);
}
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table tbody tr:is(:hover, [aria-selected="true"]) > td {
  background: var(--accent-soft);
}
/* Keep the pinned action column on the same stripe while scrolling. */
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table thead th[data-column="actions"],
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table tbody tr:nth-child(even) > td[data-column="actions"] {
  background: var(--surface-secondary) !important;
}
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table tbody tr:is(:hover, [aria-selected="true"]) > td[data-column="actions"] {
  background: var(--accent-soft) !important;
}
.department-queue-redesign :is(.dept-request-table, #dept-mgr-request-report) table.domain-table :is(th,td)[data-column="lines"] { text-align: center !important; }
.department-queue-redesign .dept-request-table [data-tone="processing"] {
  display: inline-flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  font-weight: 500;
}
.department-queue-date { display: grid; justify-items: start; white-space: nowrap; }
.department-queue-date bdi + bdi { color: var(--muted); font-size: 13px; }
.department-queue-redesign .dept-request-table .domain-inline-actions { gap: 4px; justify-content: flex-start; }
.department-queue-redesign .dept-request-table .domain-inline-actions button {
  min-block-size: 32px;
  padding-inline: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.department-queue-redesign .dept-request-table .domain-inline-actions button:is([data-variant="outline"],[data-variant="destructive"]) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.department-queue-redesign .dept-request-table .domain-inline-actions button[data-variant="destructive"] { color: var(--danger); }
.department-queue-redesign .domain-pagination { padding: 12px 20px; margin: 0; border-end-start-radius: 12px; border-end-end-radius: 12px; }
.department-queue-redesign #dept-mgr-request-report > .department-report-filters { margin-inline: 20px; padding-block-start: 12px; }
.department-queue-redesign #dept-mgr-request-report > .wrap-row { margin-inline: 20px; }
.department-queue-redesign #dept-mgr-request-report > .department-queue-heading { border-block-start: 1px solid var(--border); }
@media (min-width: 1024px) {
  .department-queue-redesign:not([data-dept-queue="report"]) .dept-request-table :is(th,td)[data-column="actions"] {
    inline-size: 252px;
    min-inline-size: 252px;
  }
  .department-queue-redesign .dept-request-table td[data-column="actions"] .domain-inline-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .department-queue-redesign #dept-mgr-request-report table.domain-table :is(th, td)[data-column="actions"] {
    inline-size: 80px;
    min-inline-size: 80px;
    max-inline-size: 80px;
    padding-inline: 8px;
  }
  .department-queue-redesign #dept-mgr-request-report table.domain-table :is(th, td)[data-column="reason"] {
    min-inline-size: 112px;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .department-queue-redesign #dept-mgr-request-report .domain-table-scroll {
    display: block !important;
    overflow: visible;
  }
  .department-queue-redesign #dept-mgr-request-report .paya-table-content {
    max-inline-size: 100%;
    overflow-x: auto;
  }
  .department-queue-redesign #dept-mgr-request-report .domain-mobile-cards { display: none !important; }
}
@media (max-width: 740px) {
  .attendance-workspace[data-attendance-view="deptRequests"]:has(.department-queue-redesign) > .page-top { align-items: flex-start; }
  .attendance-workspace[data-attendance-view="deptRequests"]:has(.department-queue-redesign) > .page-top h1 { font-size: 24px; }
  .department-queue-redesign > .domain-list-heading { padding-inline: 8px; }
  .department-queue-redesign > .domain-list-heading > .domain-segments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .department-queue-redesign .domain-segments button[data-paya-control] { padding-inline: 4px; min-inline-size: 0; white-space: normal; }
  .department-queue-redesign > .department-report-filters,
  .department-queue-redesign[data-dept-queue="ceo"] > .department-report-filters {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    padding: 12px;
  }
  .department-queue-redesign > .department-report-filters > button { inline-size: 100%; }
  .department-queue-redesign > .department-report-filters select { padding-inline-end: 36px !important; }
  .department-queue-redesign > .department-report-filters .select-chevron { inline-size: 32px; }
  .department-queue-redesign > .department-report-filters :is(button,select),
  .department-queue-redesign .dept-request-table .domain-inline-actions button { min-block-size: 44px; }
  .department-queue-redesign .department-queue-heading,
  .department-queue-redesign .domain-pagination { padding-inline: 12px; }
  .department-queue-redesign .domain-mobile-cards { padding-inline: 12px; }
  .department-queue-redesign .domain-mobile-cards .domain-record-title small,
  .department-queue-redesign:not([data-dept-queue="report"]) .domain-mobile-cards .domain-record-card dl > div:nth-child(-n+2) { display: none; }
  .department-queue-redesign .domain-mobile-cards .domain-record-card dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .department-queue-redesign .domain-mobile-cards .domain-card-actions { border-block-start: 1px solid var(--border); padding-block-start: 8px; }
}
