/* Shared, polished button family for all invoice surfaces (detail, edit, tab,
   list). Lives in global CSS — not a component's .razor.css — so the same
   treatment is reused across components despite Blazor's scoped-CSS isolation.
   Namespaced `inv-btn*` to avoid colliding with Bootstrap or other features. */

.inv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 120ms, color 120ms, background-color 120ms,
                box-shadow 120ms, transform 80ms;
}

.inv-btn:hover:not(:disabled) {
    border-color: #2c5aa0;
    color: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.12);
}

.inv-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.inv-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

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

.inv-btn i {
    font-size: 0.95rem;
    line-height: 1;
}

/* Primary — filled brand blue (Issue / Mark paid / Save / New invoice). */
.inv-btn-primary {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: #ffffff;
}

.inv-btn-primary:hover:not(:disabled) {
    background: #244b87;
    border-color: #244b87;
    color: #ffffff;
}

/* Danger — quiet red outline that fills on hover (Void / Remove). */
.inv-btn-danger {
    color: #dc2626;
    border-color: #fecaca;
}

.inv-btn-danger:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.18);
}

/* Ghost — borderless, for low-emphasis actions (Cancel). */
.inv-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #64748b;
}

.inv-btn-ghost:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: transparent;
    color: #334155;
    box-shadow: none;
    transform: none;
}

/* Compact variant for inline / table / toolbar use. */
.inv-btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
}

/* Icon-only square button (row chevron, remove-line, pagination). */
.inv-btn-icon {
    padding: 0;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    color: #64748b;
}

.inv-btn-icon.inv-btn-sm {
    width: 1.75rem;
    height: 1.75rem;
}

.inv-btn-icon i { font-size: 1rem; }
