/* Denier Master Custom Styles */

/* Toggle Switch Styles */
.status-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    vertical-align: middle;
}

.status-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.status-switch input:focus,
.status-switch input:focus-visible,
.status-switch input:active,
.status-switch input:focus + .status-slider,
.status-slider:focus,
.status-slider:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.status-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .2s ease-in-out;
    border-radius: 20px;
    outline: none !important;
    box-shadow: none !important;
}

.status-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s ease-in-out;
    border-radius: 50%;
}

.status-switch input:checked + .status-slider {
    background-color: #16A34A !important; /* status on toggle button color */
}

.status-switch input:checked + .status-slider:before {
    transform: translateX(16px);
}

/* Action Button Custom Colors */
.denier-table .action-delete-btn svg {
    stroke: #ef4444; /* Red color for trash icon */
    stroke-width: 2;
}

.denier-table .action-delete-btn:hover {
    background-color: #fee2e2;
    border-color: #ef4444;
}

.denier-table .action-edit-btn svg {
    stroke: #4a5568;
    stroke-width: 2;
}

.denier-table .action-edit-btn:hover {
    background-color: #EEF0FF;
    border-color: #0405AB;
}

.denier-table .action-edit-btn:hover svg {
    stroke: #0405AB;
}

/* Table Specific Layouts */
.denier-table {
    width: 100%;
    border-collapse: collapse;
}

.denier-table th, .denier-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.denier-table th {
    position: sticky;
    top: 0;
    z-index: 5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #555555 !important;
    background-color: var(--page-bg, #F5F5FF);
    box-shadow: inset 0 -1px 0 #E2E8F0;
}

.denier-table td {
    color: #151515;
}

.denier-table tbody tr {
    transition: background-color 0.15s ease;
}

.denier-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])) {
    background-color: #F5F7FF !important;
}

/* Spacing and alignment after the Action portion */
.denier-table th:last-child, .denier-table td:last-child {
    text-align: center !important;
}

.denier-table td:last-child .actions-container {
    justify-content: center;
}
