/*
 * ERP UI overrides loaded after the Vite bundle.
 * This keeps older Blade screens consistent even when the built Tailwind file
 * does not yet include newer utility classes.
 */

.bg-teal-600,
main a[href*="/edit"],
main .overflow-x-auto:has(> table) > table td:last-child a[href*="/edit"] {
    background-color: #0f766e !important;
}

.hover\:bg-teal-700:hover,
main a[href*="/edit"]:hover,
main .overflow-x-auto:has(> table) > table td:last-child a[href*="/edit"]:hover {
    background-color: #0f5f59 !important;
}

.text-teal-600,
main a[href*="/edit"].text-blue-600,
main a[href*="/edit"].text-blue-500 {
    color: #0f766e !important;
}

.hover\:text-teal-800:hover,
main a[href*="/edit"].hover\:text-blue-800:hover {
    color: #0f5f59 !important;
}

main .overflow-x-auto:has(> table) > table td:last-child a[href*="/edit"],
main .overflow-x-auto:has(> table) > table td:last-child a[href*="/edit"].bg-blue-600,
main .overflow-x-auto:has(> table) > table td:last-child a[href*="/edit"].bg-teal-600 {
    color: #ffffff !important;
    text-decoration: none !important;
}

main a.bg-green-600,
main button.bg-green-600,
main a.bg-indigo-600,
main button.bg-indigo-600 {
    background-color: #4f46e5 !important;
}

main a.hover\:bg-green-700:hover,
main button.hover\:bg-green-700:hover,
main a.hover\:bg-indigo-700:hover,
main button.hover\:bg-indigo-700:hover {
    background-color: #4338ca !important;
}

main a.bg-slate-600,
main button.bg-slate-600 {
    background-color: #475569 !important;
}

main a.hover\:bg-slate-700:hover,
main button.hover\:bg-slate-700:hover {
    background-color: #334155 !important;
}

main a.bg-stone-600,
main button.bg-stone-600 {
    background-color: #78716c !important;
}

main a.hover\:bg-stone-700:hover,
main button.hover\:bg-stone-700:hover {
    background-color: #57534e !important;
}

main a.bg-cyan-600,
main button.bg-cyan-600 {
    background-color: #0891b2 !important;
}

main a.hover\:bg-cyan-700:hover,
main button.hover\:bg-cyan-700:hover {
    background-color: #0e7490 !important;
}

main a.text-stone-700 {
    color: #57534e !important;
}

main a.hover\:text-stone-900:hover {
    color: #292524 !important;
}

main a.bg-blue-600,
main button.bg-blue-600,
main a.bg-indigo-600,
main button.bg-indigo-600,
main a.bg-teal-600,
main button.bg-teal-600,
main a.bg-purple-600,
main button.bg-purple-600,
main a.bg-red-600,
main button.bg-red-600,
main a.bg-gray-500,
main button.bg-gray-500,
main a.bg-slate-600,
main button.bg-slate-600,
main a.bg-stone-600,
main button.bg-stone-600,
main a.bg-cyan-600,
main button.bg-cyan-600,
main a.bg-amber-600,
main button.bg-amber-600,
main .backup-protect-button,
main .backup-unprotect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: center;
    text-decoration: none !important;
    vertical-align: middle;
}

main a[class*="bg-"],
main button[class*="bg-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: center;
    text-decoration: none !important;
    vertical-align: middle;
    box-shadow: none !important;
}

main a[class*="shadow"][class*="bg-"],
main button[class*="shadow"][class*="bg-"] {
    box-shadow: none !important;
}
