/* Jobs Page Action Links */
.job-action-link,
.job-action-link:hover,
.job-action-link:visited,
.job-action-link:active,
.job-action-link:focus {
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.job-action-link:hover {
    opacity: 0.8;
}

.job-action-link.edit,
.job-action-link.edit:hover,
.job-action-link.edit:visited {
    color: #007bff !important;
}

.job-action-link.delete,
.job-action-link.delete:hover,
.job-action-link.delete:visited {
    color: #dc3545 !important;
}

.job-action-separator {
    color: #6c757d !important;
    margin: 0 2px !important;
    font-weight: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
    font-size: 14px !important;
    position: relative !important;
    top: -2px !important;
}

/* More specific selector to override any conflicts */
td .job-action-separator {
    color: #6c757d !important;
    margin: 0 2px !important;
    font-weight: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
    font-size: 14px !important;
    position: relative !important;
    top: -2px !important;
}

/* ===== UNIVERSAL EDIT/DELETE STYLES ===== */
/* Use these classes anywhere for consistent edit/delete styling */

.action-link,
.action-link:hover,
.action-link:visited,
.action-link:active,
.action-link:focus {
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-link:hover {
    opacity: 0.8;
}

.action-link.edit,
.action-link.edit:hover,
.action-link.edit:visited {
    color: #007bff !important;
}

.action-link.delete,
.action-link.delete:hover,
.action-link.delete:visited {
    color: #dc3545 !important;
}

.action-link.view,
.action-link.view:hover,
.action-link.view:visited {
    color: #007bff !important;
}

.action-separator {
    color: #6c757d !important;
    margin: 0 2px !important;
    font-weight: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
    font-size: 14px !important;
    position: relative !important;
    top: -2px !important;
}

/* ===== STATUS DOTS ===== */
/* Use these classes for status indicators */

.status-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* Center status dots in table cells */
td:has(.status-dot) {
    text-align: center;
}

.status-dot.active {
    background-color: #28a745 !important;
}

.status-dot.inactive {
    background-color: #6c757d !important;
}

/* Job Status Dots */
.status-dot.completed {
    background-color: #007bff !important;
}

.status-dot.paused {
    background-color: #ffc107 !important;
}

.status-dot.shutdown {
    background-color: #fd7e14 !important;
}

/* Inventory Status Dots */
.status-dot.inactive {
    background-color: #6c757d !important;
}

/* Centered tooltip for status dots */
.tooltip {
    text-align: center;
}

.tooltip-inner {
    text-align: center;
    max-width: 200px;
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #000;
}

/* ===== TABLE SORTING STYLES ===== */
/* Use these classes for sortable table headers */

.sortable {
    cursor: pointer !important;
    position: relative;
    user-select: none;
}

.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Force hover effect on all table types */
.table-dark th.sortable:hover,
.table th.sortable:hover,
.table-striped th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Override any Bootstrap table header hover styles */
.table-dark th:hover.sortable,
.table th:hover.sortable {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Maximum specificity override for all table types */
.table-dark th.sortable:hover,
.table th.sortable:hover,
.table-striped th.sortable:hover,
.table-dark th:hover.sortable,
.table th:hover.sortable,
.table-striped th:hover.sortable {
    background-color: rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
}

/* Force override for any conflicting styles */
*[class*="sortable"]:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.5;
}

.sortable.asc::after {
    border-bottom: 4px solid #fff;
    border-top: none;
    opacity: 1;
}

.sortable.desc::after {
    border-top: 4px solid #fff;
    border-bottom: none;
    opacity: 1;
} 