/* X Section 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-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .2s ease-in-out;
    border-radius: 20px;
}

.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%;
}

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

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

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

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

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

.x-section-table .action-edit-btn:hover {
    background-color: #f7fafc;
    border-color: #cbd5e1;
}

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

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

.x-section-table th {
    font-weight: 600;
    color: #718096;
    background-color: #f8fafc;
}

.x-section-table td {
    color: #151515;
}

.x-section-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Spacing and alignment after the Action portion */
.x-section-table th:last-child, .x-section-table td:last-child {
    padding-right: 40px !important;
    text-align: right !important;
}

.x-section-table td:last-child .actions-container {
    justify-content: flex-end;
}
