/* Data Table Widget - 4bc74e34 */

.dt-4bc74e34-container {
    width: 100%;
    position: relative;
}

/* Toolbar / Search */
.dt-4bc74e34-toolbar {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-end;
}

.dt-4bc74e34-search {
    width: 100%;
    max-width: 320px;
    padding: 10px 16px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px;
}

.dt-4bc74e34-search:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Table Wrapper */
.dt-4bc74e34-wrap {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.dt-4bc74e34-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table */
.dt-4bc74e34-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
}

/* Header */
.dt-4bc74e34-thead th {
    background-color: #6366f1;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 18px;
    white-space: nowrap;
    border: none;
    position: relative;
    user-select: none;
}

.dt-4bc74e34-thead th[data-sortable="1"] {
    cursor: pointer;
}

.dt-4bc74e34-thead th[data-sortable="1"]:hover {
    opacity: 0.9;
}

.dt-4bc74e34-th-inner {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.dt-4bc74e34-th-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}

.dt-4bc74e34-th-icon i {
    font-size: 16px;
}

.dt-4bc74e34-th-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dt-4bc74e34-sort-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    opacity: 0.6;
    font-size: 12px;
    transition: opacity 0.2s;
}

.dt-4bc74e34-thead th:hover .dt-4bc74e34-sort-icon {
    opacity: 1;
}

.dt-4bc74e34-sort-icon .fa-sort-up,
.dt-4bc74e34-sort-icon .fa-sort-down {
    opacity: 1;
}

/* Body */
.dt-4bc74e34-tbody td {
    padding: 12px 18px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s;
}

.dt-4bc74e34-tbody tr {
    transition: background-color 0.15s;
}

.dt-4bc74e34-tbody tr:nth-child(even) {
    background-color: #f8f9fc;
}

.dt-4bc74e34-tbody tr:hover {
    background-color: #eef2ff;
}

.dt-4bc74e34-tbody tr:last-child td {
    border-bottom: none;
}

/* Pagination */
.dt-4bc74e34-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.dt-4bc74e34-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #6366f1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.dt-4bc74e34-page-btn:hover {
    background-color: #f3f4f6;
}

.dt-4bc74e34-page-btn.dt-active {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

.dt-4bc74e34-page-btn.dt-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.dt-4bc74e34-page-info {
    font-size: 13px;
    color: #6b7280;
    margin: 0 8px;
}

/* No Results */
.dt-4bc74e34-no-results {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    font-size: 14px;
}

/* Card View */
.dt-4bc74e34-cards {
    display: none;
}

.dt-4bc74e34-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dt-4bc74e34-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.dt-4bc74e34-card-row:last-child {
    border-bottom: none;
}

.dt-4bc74e34-card-label {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
    flex-shrink: 0;
    margin-right: 12px;
}

.dt-4bc74e34-card-value {
    font-size: 14px;
    color: #374151;
    text-align: right;
    word-break: break-word;
}

/* Responsive: card mode handled by JS */
.dt-4bc74e34-container.dt-card-active .dt-4bc74e34-wrap {
    display: none;
}

.dt-4bc74e34-container.dt-card-active .dt-4bc74e34-cards {
    display: block;
}
