/**
 * Bootstrap stand-ins for the Tailwind-style classes used across Livewire views.
 * Those classes were only defined inside the estimate builder, so on every other
 * page dark headers, badges, and action buttons rendered with missing color
 * (white text on a white surface, or unstyled Preview / PDF / Delete buttons).
 */

.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }
.text-slate-900 { color: #0f172a !important; }

.bg-slate-50  { background-color: #f8fafc !important; }
.bg-slate-100 { background-color: #f1f5f9 !important; }
.bg-slate-200 { background-color: #e2e8f0 !important; }
.bg-slate-700 { background-color: #334155 !important; color: #ffffff !important; }
.bg-slate-800 { background-color: #1e293b !important; color: #ffffff !important; }
.bg-slate-900 { background-color: #0f172a !important; color: #ffffff !important; }

.border-slate-100 { border-color: #f1f5f9 !important; }
.border-slate-200 { border-color: #e2e8f0 !important; }
.border-slate-300 { border-color: #cbd5e1 !important; }
.border-slate-400 { border-color: #94a3b8 !important; }
.border-slate-700 { border-color: #334155 !important; }

.text-sky-100 { color: #e0f2fe !important; }
.text-sky-200 { color: #bae6fd !important; }
.text-sky-400 { color: #38bdf8 !important; }
.text-sky-600 { color: #0284c7 !important; }
.text-sky-700 { color: #0369a1 !important; }
.text-sky-800 { color: #075985 !important; }
.text-sky-900 { color: #0c4a6e !important; }
.bg-sky-50  { background-color: #f0f9ff !important; }
.bg-sky-100 { background-color: #e0f2fe !important; }
.bg-sky-500 { background-color: #0ea5e9 !important; color: #ffffff !important; }
.border-sky-200 { border-color: #bae6fd !important; }
.border-sky-300 { border-color: #7dd3fc !important; }
.border-sky-500 { border-color: #0ea5e9 !important; }

.text-blue-600 { color: #2563eb !important; }
.text-blue-800 { color: #1e40af !important; }
.text-blue-950 { color: #172554 !important; }
.bg-blue-100 { background-color: #dbeafe !important; }
.border-blue-200 { border-color: #bfdbfe !important; }
.border-blue-300 { border-color: #93c5fd !important; }
.border-blue-700 { border-color: #1d4ed8 !important; }
.border-blue-800 { border-color: #1e40af !important; }

.text-amber-300 { color: #fcd34d !important; }
.text-amber-600 { color: #d97706 !important; }
.text-amber-700 { color: #b45309 !important; }
.text-amber-800 { color: #92400e !important; }
.text-amber-900 { color: #78350f !important; }
.bg-amber-50  { background-color: #fffbeb !important; }
.bg-amber-100 { background-color: #fef3c7 !important; }
.bg-amber-400 { background-color: #fbbf24 !important; }
.border-amber-200 { border-color: #fde68a !important; }
.border-amber-300 { border-color: #fcd34d !important; }
.border-amber-500 { border-color: #f59e0b !important; }

.text-emerald-100 { color: #d1fae5 !important; }
.text-emerald-200 { color: #a7f3d0 !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-emerald-600 { color: #059669 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-emerald-800 { color: #065f46 !important; }
.text-emerald-900 { color: #064e3b !important; }
.bg-emerald-50  { background-color: #ecfdf5 !important; }
.bg-emerald-100 { background-color: #d1fae5 !important; }
.bg-emerald-500 { background-color: #10b981 !important; color: #ffffff !important; }
.bg-emerald-600 { background-color: #059669 !important; color: #ffffff !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }
.border-emerald-300 { border-color: #6ee7b7 !important; }
.border-emerald-500 { border-color: #10b981 !important; }
.border-emerald-600 { border-color: #059669 !important; }

.text-indigo-600 { color: #4f46e5 !important; }
.text-indigo-700 { color: #4338ca !important; }
.text-indigo-800 { color: #3730a3 !important; }
.bg-indigo-100 { background-color: #e0e7ff !important; }
.border-indigo-300 { border-color: #a5b4fc !important; }

.text-rose-700 { color: #be123c !important; }
.text-rose-800 { color: #9f1239 !important; }
.text-rose-900 { color: #881337 !important; }
.bg-rose-100 { background-color: #ffe4e6 !important; }
.border-rose-300 { border-color: #fda4af !important; }

.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.fw-extrabold { font-weight: 800 !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }
.text-xxs, .text-2xs { font-size: 0.65rem !important; }

/* Dashboard status pills (Bootstrap .badge text is white, so these need a background) */
.badge-subtle-primary { background: #ede9fe !important; color: #6d28d9 !important; }
.badge-subtle-success { background: #dcfce7 !important; color: #15803d !important; }
.badge-subtle-warning { background: #fef3c7 !important; color: #b45309 !important; }
.badge-subtle-danger  { background: #ffe4e6 !important; color: #be123c !important; }
.badge-subtle-info    { background: #e0f2fe !important; color: #0369a1 !important; }
.badge-subtle-dark    { background: #f1f5f9 !important; color: #0f172a !important; }
.shadow-2xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important; }
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.06) !important; }

/* Download PDF on dark preview headers (class was only in the unused Nexa file) */
a.btn.btn-download-unique,
button.btn.btn-download-unique {
    background: #059669 !important;
    color: #ffffff !important;
    border: 1px solid #047857 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}
a.btn.btn-download-unique:hover,
button.btn.btn-download-unique:hover {
    background: #047857 !important;
    color: #ffffff !important;
}

/* Keep row actions on one line with a small gap */
.action-btn-group {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    white-space: nowrap !important;
    width: max-content;
    max-width: none;
}
.action-btn-group > * {
    flex: 0 0 auto !important;
}
td.actions-cell,
th.actions-cell {
    white-space: nowrap !important;
    width: 1%;
    vertical-align: middle;
}

.dropdown-menu {
    z-index: 1080;
}

/* Table row actions: Preview, PDF, Edit, Delete */
.btn-action-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    background-color: #ffffff;
    color: #334155;
}

.btn-action-view {
    background-color: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}
.btn-action-view:hover {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-action-edit {
    background-color: #f8fafc;
    color: #334155;
    border-color: #e2e8f0;
}
.btn-action-edit:hover {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.btn-action-pdf {
    background-color: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}
.btn-action-pdf:hover {
    background-color: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

.btn-action-delete {
    background-color: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
    padding: 0.28rem 0.5rem;
}
.btn-action-delete:hover {
    background-color: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

.btn-action-convert {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.btn-action-convert:hover {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.btn-action-invoice {
    background-color: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}
.btn-action-invoice:hover {
    background-color: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.btn-action-receipt {
    background-color: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.btn-action-receipt:hover {
    background-color: #059669;
    color: #ffffff;
    border-color: #059669;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
