









.table-wrapper,
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  


  overscroll-behavior-x: contain;
  

  padding-bottom: 2px;
}







.table {
  width: 100%;
  


  min-width: var(--table-min-width, 720px);
  border-collapse: collapse;
  
  --cell-max: 16rem;
  --cell-text-max: 28rem;
  --cell-truncate-min: 10rem;
}


.table-min-none { --table-min-width: 0; }
.table-min-lg   { --table-min-width: 960px; }



.table th {
  padding: 12px 16px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-secondary-foreground);
  text-align: left;
  background: rgba(249,249,249,0.5);
  border-bottom: 1px solid var(--color-border);
  white-space: normal;
  overflow-wrap: normal;
  vertical-align: bottom;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dark .table th {
  background: rgba(31,41,55,0.5);
}



.table td {
  padding: 12px 16px;
  font-size: var(--font-size-sm);
  color: var(--color-mono);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
  max-width: var(--cell-max);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}


.table td:has(> .badge + .badge) {
  white-space: normal;
}


.table td:has(> .badge, > .action-cell, > [data-time-ms], > .row-menu) {
  width: 1%;
}



.table td:has(> .action-cell, > .btn, > .form-input, > .form-select, > .row-menu) {
  max-width: none;
  overflow: visible;
}




.table td.cell-truncate {
  max-width: 0;
}
.table th.cell-truncate {
  min-width: var(--cell-truncate-min);
}



.table td.cell-text {
  max-width: var(--cell-text-max);
  white-space: normal;
}
.table td.cell-text > .cell-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}


.table [data-time-ms] {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}



.table [data-tooltip-auto] {
  cursor: help;
}
.table [data-tooltip-auto]:focus-visible {
  outline-offset: -2px;
}



















@media (max-width: 640px) {
  .table.table-stack {
    min-width: 0;
  }

  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .table-stack tbody,
  .table-stack tr {
    display: block;
  }

  .table-stack tr {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 4px 12px;
    margin-bottom: 10px;
    background: var(--color-surface);
  }

  .table-stack tr:last-child {
    margin-bottom: 0;
  }

  

  .card-body-flush .table-stack tbody {
    padding: 12px 0;
  }

  



  .table-stack td {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    text-align: left;
    overflow-wrap: anywhere;
    


  }

  



  .table.table-stack td,
  .table.table-stack td.cell-truncate {
    width: auto;
    max-width: none;
    white-space: normal;
    overflow: visible;
  }

  .table.table-stack tbody tr:last-child td {
    border-bottom: 1px solid var(--color-border-light);
  }

  .table.table-stack tbody tr td:last-child {
    border-bottom: none;
  }

  .table-stack td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    font-size: var(--font-size-2xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    color: var(--color-secondary-foreground);
  }

  .table-stack td:not([data-label]) {
    justify-content: flex-end;
  }

  .table-stack td:not([data-label])::before {
    content: none;
  }

  
  .table-stack td.table-empty-cell {
    display: block;
    text-align: center;
  }

  


  .table-stack td.table-stack-primary {
    display: block;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
  }

  .table-stack td.table-stack-primary::before {
    content: none;
  }
}








.table td.table-empty-cell {
  text-align: center;
  padding: 2rem;
  color: var(--color-muted-foreground);
  
  max-width: none;
  white-space: normal;
}

.table tbody tr:hover {
  background: var(--color-accent);
}

.table tbody tr:last-child td {
  border-bottom: none;
}


.table th.sortable {
  cursor: pointer;
  user-select: none;
}
.table th.sortable:hover {
  color: var(--color-primary);
}

.table th.sortable .sort-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.sort-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  width: 12px;
  height: 16px;
  margin-left: 4px;
  vertical-align: middle;
  position: relative;
}
.sort-icon svg {
  width: 12px;
  height: 8px;
  stroke: var(--color-muted-foreground);
}
th.sortable.asc .sort-icon .sort-up { stroke: var(--color-primary); }
th.sortable.desc .sort-icon .sort-down { stroke: var(--color-primary); }


.col-check {
  width: 44px;
  text-align: center;
}





.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.member-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-mono);
}
.member-name:hover { color: var(--color-primary); }
.member-tasks {
  font-size: var(--font-size-xs);
  color: var(--color-muted-foreground);
  font-weight: 400;
}


.roles-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}


.location-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.location-flag {
  font-size: 16px;
  line-height: 1;
}




















































.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  



  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}
.pagination-row .pagination {
  margin-left: auto;
}






.pagination-pages {
  display: flex;
  align-items: center;
  gap: inherit;
  flex-wrap: wrap;
  min-width: 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-secondary-foreground);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  


  flex-shrink: 0;
}
.page-btn:hover:not(:disabled):not(.active) {
  background: var(--color-accent);
  border-color: var(--color-input-border);
}
.page-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}











.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.page-btn.disabled,
.page-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}





.page-nav {
  padding: 0 4px;
}








.page-ellipsis {
  cursor: default;
  pointer-events: none;
  color: var(--color-muted-foreground);
  background: transparent;
  border-color: transparent;
}







.pagination-current {
  display: none;
  align-items: center;
  padding: 0 4px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-muted-foreground);
  white-space: nowrap;
}

.pagination-info {
  font-size: var(--font-size-sm);
  color: var(--color-muted-foreground);
}


.per-page {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  color: var(--color-muted-foreground);
}
.per-page select {
  height: 28px;
  padding: 0 24px 0 8px;
  font-size: var(--font-size-xs);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-mono);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2399a1b7' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}


.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  width: 100%;
}
.pagination-left {
  display: flex;
  align-items: center;
  gap: 16px;
  




  flex-wrap: wrap;
}





















@media (max-width: 900px) {
  .pagination-pages > [data-pager-role="outer"],
  .pagination-pages > [data-pager-role="ellipsis"] {
    display: none;
  }
}









@media (max-width: 640px) {
  .pagination-row {
    flex-direction: column;
    align-items: stretch;
  }
  .pagination-row .pagination {
    margin-left: 0;
    justify-content: center;
  }
  .pagination-left {
    justify-content: center;
  }
  .pagination-pages {
    display: none;
  }
  .pagination-current {
    display: inline-flex;
  }
}













@media (pointer: coarse) {
  .page-btn {
    min-width: 36px;
    height: 36px;
  }
}
