/* TIC theme shared by the pages. Colours follow the TIC dashboard (tic-db): brand orange for
   actions, grey for secondary actions, green kept for the Excel export. */
:root {
    --tic-orange: #f37021;
    --tic-orange-dark: #df5b0c;
    --tic-orange-focus: rgba(243, 112, 33, 0.35);
    --tic-gray: #6c757d;
    --tic-gray-dark: #5c636a;
    --tic-green: #28a745;
    --tic-green-dark: #218838;
    --tic-red: #dc3545;
    --tic-text: #333;
    --tic-muted: #555;
}

/* buttons of the pages (SweetAlert2 popups are themed separately below) */
.btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: var(--tic-orange);
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

.btn:hover:not(:disabled) {
    background-color: var(--tic-orange-dark);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--tic-orange-focus);
}

.btn-secondary {
    background-color: var(--tic-gray);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--tic-gray-dark);
}

.btn-success {
    background-color: var(--tic-green);
}

.btn-success:hover:not(:disabled) {
    background-color: var(--tic-green-dark);
}

.btn-outline {
    color: var(--tic-orange);
    background-color: #fff;
    border-color: var(--tic-orange);
}

.btn-outline:hover:not(:disabled) {
    color: #fff;
    background-color: var(--tic-orange);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* SweetAlert2: confirm in TIC orange, cancel in grey (a popup can still pass its own colour) */
.swal2-popup .swal2-styled.swal2-confirm {
    background-color: var(--tic-orange);
}

.swal2-popup .swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px var(--tic-orange-focus);
}

.swal2-popup .swal2-styled.swal2-cancel {
    background-color: var(--tic-gray);
}

.swal2-popup .swal2-loader {
    border-color: var(--tic-orange) transparent var(--tic-orange) transparent;
}
