.data-table-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.data-table-wrap,
.data-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid rgba(44, 76, 153, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 14px 30px rgba(44, 76, 153, .08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: rgba(255, 255, 255, .82);
}

.data-table th,
.data-table td {
    min-height: 52px;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(44, 76, 153, .10);
    vertical-align: middle;
    line-height: 1.5;
    text-align: right;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.data-table thead th {
    height: 48px;
    background: linear-gradient(135deg, rgba(44, 76, 153, .13), rgba(66, 131, 71, .10));
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.data-table tbody tr:hover {
    background: rgba(66, 131, 71, .065);
}

.cell-index {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    text-align: center;
}

.cell-center,
.cell-number,
.cell-time,
.cell-date {
    text-align: center;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.cell-nowrap {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.cell-wrap {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.cell-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cell-secondary {
    color: var(--muted, #64748b);
    font-size: 12px;
    font-weight: 600;
}

.cell-actions {
    width: 110px;
    min-width: 110px;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(255, 255, 255, .96);
}

.data-table-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.data-table-actions form {
    margin: 0;
}

.data-table-actions .button,
.data-table-actions button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
    white-space: nowrap;
}

.data-table .pill {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 11px;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.data-table .pill.warning {
    background: #fff8df;
    color: #8a6200;
}

.attendance-review-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.attendance-review-table th,
.attendance-review-table td {
    padding-inline: 6px;
    overflow: visible;
    text-overflow: clip;
}

.attendance-review-table .employee-cell,
.attendance-review-table .shift-cell,
.attendance-review-table .notes-cell {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.attendance-review-table .cell-date {
    direction: ltr;
    unicode-bidi: isolate;
}

.attendance-review-table .cell-date,
.attendance-review-table .status-cell,
.attendance-review-table .cell-actions {
    white-space: nowrap;
}

.attendance-review-table .cell-actions {
    width: auto;
    min-width: 0;
    max-width: none;
    position: static;
    left: auto;
    z-index: auto;
    background: transparent;
    text-align: center;
}

.attendance-review-table .data-table-actions .button,
.attendance-review-table .data-table-actions button {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
    max-width: 100%;
}

.data-table-card:has(.attendance-review-table) {
    overflow: visible;
}

.data-table-wrap:has(.attendance-review-table),
.data-table-wrapper:has(.attendance-review-table) {
    overflow-x: visible;
}

@media (min-width: 1366px) {
    .data-table-wrap,
    .data-table-wrapper {
        overflow-x: visible;
    }
}

@media (max-width: 899px) {
    .data-table {
        min-width: 920px;
    }
}
