body {
    background-color: #f8f9fa;
}

fieldset {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d6efd;
    width: auto;
    padding: 0 0.5rem;
    border: none;
}

.table-actions {
    white-space: nowrap;
    width: 1%;
}

.card-header h5 {
    margin-bottom: 0;
}

.view-cards .card {
    transition: box-shadow 0.15s ease;
}
.view-cards .card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
}
.view-cards .card-title a {
    text-decoration: none;
}
.view-cards .card-title a:hover {
    text-decoration: underline;
}

.inactive-group {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.4) !important;
    border-radius: 0.25rem;
}

tr.row-inactive td {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-top: 1px solid rgba(220, 53, 69, 0.4) !important;
    border-bottom: 1px solid rgba(220, 53, 69, 0.4) !important;
}
tr.row-inactive td:first-child {
    border-left: 1px solid rgba(220, 53, 69, 0.4) !important;
}
tr.row-inactive td:last-child {
    border-right: 1px solid rgba(220, 53, 69, 0.4) !important;
}

.sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}
.sort-link:hover {
    color: #ffc107;
    text-decoration: none;
}
.sort-indicator {
    font-size: 0.7rem;
}

@media print {
    .navbar, .btn, .no-print {
        display: none !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}
