/* Module page toolbar — breadcrumb + action buttons */
.module-toolbar-card {
    margin-bottom: 1rem !important;
    border: 1px solid var(--smart-border-light, #eef2f6);
    border-radius: 10px;
    box-shadow: var(--smart-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.05));
    background: var(--smart-surface, #fff);
}

.module-toolbar-card .card-body,
.module-toolbar-card .page-title-box {
    padding: 0.65rem 1rem !important;
}

.module-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 42px;
}

.module-toolbar-breadcrumb {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--smart-text-muted, #94a3b8);
    line-height: 1.4;
}

.module-toolbar-breadcrumb a {
    color: var(--smart-text-muted, #94a3b8);
    text-decoration: none;
    transition: color 0.15s ease;
}

.module-toolbar-breadcrumb a:hover {
    color: var(--smart-primary, #5b8def);
}

.module-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

/* Soft toolbar buttons — match product-dtls style */
.btn-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    border: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-toolbar i {
    font-size: 0.875rem;
    line-height: 1;
}

.btn-toolbar-info {
    background: rgba(80, 165, 241, 0.12);
    color: #3b82f6;
}

.btn-toolbar-info:hover {
    background: rgba(80, 165, 241, 0.22);
    color: #2563eb;
}

.btn-toolbar-primary {
    background: rgba(91, 141, 239, 0.12);
    color: #5b8def;
}

.btn-toolbar-primary:hover {
    background: rgba(91, 141, 239, 0.22);
    color: #4a7de0;
}

.btn-toolbar-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-toolbar-danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #dc2626;
}

.btn-toolbar-success {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.btn-toolbar-success:hover {
    background: rgba(34, 197, 94, 0.22);
    color: #15803d;
}

.btn-toolbar-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.btn-toolbar-warning:hover {
    background: rgba(245, 158, 11, 0.22);
    color: #b45309;
}

.btn-toolbar-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.btn-toolbar-secondary:hover {
    background: rgba(100, 116, 139, 0.18);
    color: #475569;
}

@media (max-width: 768px) {
    .module-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .module-toolbar-actions {
        width: 100%;
    }

    .btn-toolbar {
        flex: 1 1 auto;
        justify-content: center;
        min-width: calc(50% - 0.25rem);
    }
}
